home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ MSO2K Options 2.xpl < prev    next >
Text File  |  1999-09-16  |  1KB  |  74 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Program Options\Office 2000"
  5. "NAME"="Excel Options"
  6. "VERSION"="1.02"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Always display four digit year values in Excel"
  9. "TEXT 2"="Force Excel to display extended characters correctly"
  10. "DESCRIPTION 1"="Some options for Microsoft Excel 2000"
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14.  
  15.  
  16. sV1="HKCU\Software\Policies\Microsoft\Office\9.0\Excel\Options\EnableFourDigitYearDisplay" 'DW
  17. sV2="HKCU\Software\Microsoft\Office\9.0\Excel\Options\FontSub" 'DW
  18.  
  19.  
  20. sPCheck="HKCU\Software\Microsoft\Office\9.0\"
  21. Sub Plugin_Initialize 
  22. if RegPathExists(sPCheck) then
  23.  i=RegReadValue(sV1)
  24.  if i=1 then SetUiElement 1,true
  25.  
  26.  i=RegReadValue(sV2)
  27.  if IsEmpty(i)=true then 
  28.     SetUiElement 2,false
  29.  else
  30.     if i=0 then SetUiElement 2,true
  31.  end if
  32.  
  33.  
  34.  'i=RegReadValue(sV3)
  35.  'if i<>1 then SetUiElement 3,true
  36. else
  37.  disable()
  38. end if
  39. End Sub
  40.  
  41.  
  42. Sub Plugin_CheckData(ElementIndex)
  43. End Sub
  44.  
  45.  
  46.  
  47. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  48.  if GetUIElement(1)=true then
  49.     i=1
  50.  else
  51.     i=0
  52.  end if
  53.  Call RegWriteValue(sV1,i,2)
  54.  
  55.  if GetUIElement(2)=true then
  56.     i=0
  57.  else
  58.     i=1
  59.  end if
  60.  Call RegWriteValue(sV2,i,2)
  61.  
  62.  
  63.  
  64.  
  65.  Call Logoff()
  66. End Sub
  67.  
  68.  
  69. Sub Plugin_Terminate 
  70. End Sub
  71.  
  72.  
  73.  
  74.